import request from '@/utils/request'

// 查询购入成本管理列表
export function listPurchase_info(query) {
  return request({
    url: '/system/purchase_info/list',
    method: 'get',
    params: query
  })
}

// 查询购入成本管理详细
export function getPurchase_info(purchaseId) {
  return request({
    url: '/system/purchase_info/' + purchaseId,
    method: 'get'
  })
}

// 新增购入成本管理
export function addPurchase_info(data) {
  return request({
    url: '/system/purchase_info',
    method: 'post',
    data: data
  })
}

// 修改购入成本管理
export function updatePurchase_info(data) {
  return request({
    url: '/system/purchase_info',
    method: 'put',
    data: data
  })
}

// 删除购入成本管理
export function delPurchase_info(purchaseId) {
  return request({
    url: '/system/purchase_info/' + purchaseId,
    method: 'delete'
  })
}
